package com.example.demo.DTO;

import com.example.demo.dataobject.Device;
import com.example.demo.dataobject.DeviceS;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class DeviceDTO {
    private Integer id;
    private String deviceName;
    private Integer value;
    private Date createTime;
    private Date updateTime;

    List<DeviceS> DeviceS;

    public DeviceDTO(Device a, List<DeviceS> b){
        this.id = a.getId();
        this.deviceName = a.getDeviceName();
        this.value = a.getValue();
        this.createTime = a.getCreateTime();
        this.updateTime = a.getUpdateTime();

        this.DeviceS = b;
    }
    public DeviceDTO(){
    }
}
